'''
Created on 2009-11-11

@author: wangyongtao
'''
from google.appengine.ext.webapp import template

def imagename(url):
    """Formats the given date in RFC 3339 format for feeds."""
    if not url: return ''
    splits = url.split('/')
    name = splits[len(splits)-1]
    return name  

# Register the filter functions with Django
register = template.create_template_register()
register.filter(imagename)

